package com.item.audrey_hepburn.entity.db2;

import java.util.Date;

/**
 * _______                             __________
 * \      \   _______  __ ___________  \______   \__ __  ____
 * /   |   \_/ __ \  \/ // __ \_  __ \  |    |  _/  |  \/ ___\
 * /    |    \  ___/\   /\  ___/|  | \/  |    |   \  |  / /_/  >
 * \____|__  /\___  >\_/  \___  >__|     |______  /____/\___  /
 * \/     \/          \/                \/     /_____/
 *
 * @Auther: wangdong
 * @Description: TODO
 * @Date: 2019/4/26 15:17
 * @Version 1.0
 */
public class ResultMap {

    private String success;

    private String message;

    private Date createDate = new Date();

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate() {
        this.createDate = new Date();
    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        setCreateDate();
        this.message = message;
    }

    public void success(){
        setSuccess("success");
    }
    public void fail(){
        setSuccess("fail");
    }

    private static class newResultMap{
        private static final ResultMap resultMap = new ResultMap();
    }

    public static ResultMap getResultMap(){
        return newResultMap.resultMap;
    }



}
